﻿using Dt261.Model;
using Dt261.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Dt261.Views
{
    /// <summary>
    /// UserInfoPage.xaml 的交互逻辑
    /// </summary>
    public partial class UserInfoPage : Page
    {
        public UserInfoPage()
        {
            InitializeComponent();
            DataContext = new UserInfoViewModel();
        }

        public UserInfoPage(MemberInfo m)
        {
            InitializeComponent();
            UserInfoViewModel vm = new UserInfoViewModel();
            vm.SelectMember = m;
            DataContext = vm;

        }
    }
}
